package com.edu.service.impl;

import com.edu.service.BookService;
import org.springframework.stereotype.Service;

/*
 * @Author:mx
 * @Date:2025/11/10-10:21:48
 */
@Service
public class BookServiceImpl implements BookService {
    @Override
    public void addBook() {
        System.out.println("执行了 添加Book");
    }

    @Override
    public void deleteBook() {
        System.out.println("执行了 删除Book");
    }

    @Override
    public void updateBook() {
        System.out.println("执行了 修改Book");
    }

    @Override
    public void selectBook() {
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("执行了 查询Book");
    }
}
